Pluralsight Using MongoDB with ASP.NET MVC
Interested in using MongoDB to store information in your ASP.NET MVC applications? This course covers the decisions you will face and the tools available to incrementally build an MVC application with MongoDB. You will learn how to connect to MongoDB using the official C# driver, create documents and customize serialization, overcome the object relational impedance mismatch and start creating rich domain models, store and modify documents, query documents with both LINQ and Mongo query styles, and store files with GridFS. At the end of this course, you will have the skills necessary to begin using MongoDB in your .NET applications.
Course Introduction | 00:05:21 |
| Welcome | 00:47 |
| Why Use MongoDB in MVC? | 03:37 |
| What Will I Learn? | 00:56 |
Connecting to MongoDB | 00:16:55 |
| Overview | 01:01 |
| The Official Driver | 02:14 |
| Exploring the Driver Connection Abstractions | 04:04 |
| Getting Mongo Running | 00:59 |
| Setting Up an MVC App to Connect to Mongo | 03:58 |
| Extracting a Context Class to Connect to Mongo | 03:29 |
| Takeaway | 01:08 |
Creating Documents | 00:46:31 |
| Overview | 01:01 |
| What is a Document? | 05:44 |
| The BsonDocument Model | 04:31 |
| Demo: Creating Documents with BsonDocument | 07:32 |
| Demo: BsonValue Operations | 02:09 |
| Demo: BsonDocument to BSON | 02:02 |
| Creating Documents with POCOs | 05:49 |
| Modeling Tips | 01:57 |
| Demo: Serialization Attributes | 02:45 |
| More Serialization Attributes | 04:40 |
| Demo: Designing a Rental Model | 07:32 |
| Takeaway | 00:43 |
Storing and Modifying Documents | 00:50:32 |
| Overview | 02:07 |
| MongoCollection and WriteConcern | 04:26 |
| The Insert Operation | 01:32 |
| Demo: Inserting Rentals | 07:39 |
| Demo: Introducing Robomongo | 03:20 |
| Replacement Updates | 05:54 |
| Demo: Replacement to Adjust Rental Prices. | 06:43 |
| Modification Updates | 06:01 |
| Updating Multiple Documents | 01:28 |
| Considerations: Replace vs. Modify, Concurrency, Growth, Size | 05:07 |
| Atomic Find and Modify Operation | 01:55 |
| The Remove Operation | 01:42 |
| Demo: Removing Rentals | 01:32 |
| Takeaway | 00:58 |
Querying Documents | 00:37:51 |
| Overview | 02:08 |
| Find and Query Documents | 05:25 |
| Demo: Using Find to Add a Price Limit Filter | 04:06 |
| MongoCursor | 02:45 |
| Demo: Using MongoCursor to Sort Rentals | 01:32 |
| LINQ | 01:51 |
| Demo: Using LINQ to Add a Minimum Rooms Filter | 03:57 |
| Aggregate | 06:35 |
| Demo: Using Aggregate to Query Rental Price Distributions | 06:01 |
| Query Performance | 02:13 |
| Takeaway | 01:12 |
GridFS | 00:28:46 |
| Overview | 02:32 |
| What is GridFS? | 05:22 |
| Storing Files | 01:56 |
| Demo: Attaching Images to Rentals | 06:31 |
| Reading Files | 03:28 |
| Demo: Displaying Rental Images | 02:02 |
| Replacing Files | 02:14 |
| Demo: Replacing Rental Images | 03:15 |
| Takeaway | 01:22 |
Next Steps | 00:06:21 |
| Course Recap | 01:11 |
| Further Client Learning | 03:42 |
| Further Server Learning | 01:28 |
Course Introduction
Connecting to MongoDB
Creating Documents
Storing and Modifying Documents
Querying Documents
Next Steps